home *** CD-ROM | disk | FTP | other *** search
- Path: bud.cc.swin.edu.au!901380
- From: Vincent Edward Scaturchio <901380@bud.cc.swin.edu.au>
- Newsgroups: comp.lang.c
- Subject: Re:Sorting Character Arrays.
- Date: Wed, 10 Apr 1996 17:24:03 +1000
- Organization: Swinburne University of Technology
- Message-ID: <Pine.OSF.3.91.960410170926.24676A-100000@bud.cc.swin.edu.au>
- NNTP-Posting-Host: bude.cc.swin.edu.au
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=US-ASCII
-
- Hi
- I have three problems in this area, I hope someone is willing to help.
- Problem 1: Creating random strings of up to 5 letters of alphabet.
- 2: Placing these strings into an array.
- 3: Sorting the array (i.e.Quicksort) into alphabetical order.
- I've tried numerous times and am no closer. I feel competent when it
- comes to doing the above in numbers but strings??
- I've been using strcmp and strcpy in the sorting section of my program to
- compare different strings and swap them but alas to no avail. All I
- receive is GPE faults from the processor. This is a first time post to
- this group, any help would be appreciated.
-
- Email: Flymo@bud.swin.edu.au
-
-